package com.zimi.service;

import com.zimi.mapper.ExpenseReimbursementMapper;
import com.zimi.model.ExpenseReimbursement;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: lmc
 * @Date: 2019/3/27 10:33
 * @Description:
 */
@Service
public class ExpenseReimbursementService {

    @Autowired
    private ExpenseReimbursementMapper expenseReimbursementMapper;


    public int deleteByPrimaryKey(Integer id) {
        return expenseReimbursementMapper.deleteByPrimaryKey(id);
    }


    public int insert(ExpenseReimbursement expenseReimbursement) {
        return expenseReimbursementMapper.insert(expenseReimbursement);
    }


    public int insertSelective(ExpenseReimbursement expenseReimbursement) {
        return expenseReimbursementMapper.insertSelective(expenseReimbursement);
    }


    public ExpenseReimbursement selectByPrimaryKey(Integer id) {
        return expenseReimbursementMapper.selectByPrimaryKey(id);
    }


    public int updateByPrimaryKeySelective(ExpenseReimbursement expenseReimbursement) {
        return expenseReimbursementMapper.updateByPrimaryKeySelective(expenseReimbursement);
    }


    public int updateByPrimaryKey(ExpenseReimbursement expenseReimbursement) {
        return expenseReimbursementMapper.updateByPrimaryKey(expenseReimbursement);
    }


    public List<ExpenseReimbursement> selectAll(ExpenseReimbursement expenseReimbursement) {
        return expenseReimbursementMapper.selectAll(expenseReimbursement);
    }

}
